package com.joysuch.wwyt.workflow.repository;

import com.joysuch.wwyt.workflow.entity.WorkflowWatermarkItem;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zero
 * @since 2021-10-25
 */
public interface WorkflowWatermarkItemDao extends JpaRepository<WorkflowWatermarkItem,Long>  {

    @Modifying
    void deleteByWatermarkId(Long watermarkId);
    
    List<WorkflowWatermarkItem> findAllByWatermarkId(Long watermarkId);
}
